import request from '@/utils/request'

export default {
  getBookSalesStatistics(startTime, endTime) {
    return request({
      url: '/charts/bookSalesStatistics',
      method: 'get',
      params: {
        startTime: startTime,
        endTime: endTime
      }
    })
  },
  getUserStatistics(startTime, endTime) {
    return request({
      url: '/charts/userStatistics',
      method: 'get',
      params: {
        startTime: startTime,
        endTime: endTime
      }
    })
  }
}
